/*
 * File Name: BaseAction.java
 */
package co.edu.uniandes.intercon.client.action;

import java.util.Map;

/**
 * Instances of this class call business logic components in order to make 
 * business operations done
 *
 * @author Fabian Gutierrez [fagossa@gmail.com]
 */
public abstract class AbstractBaseGUIAction {
    
    protected static final String DATE_NOT_VALID =
            "Availability date not valid";
    protected static final String DATE_REQUIRED = "The field Date is required";
    protected static final String HOTEL_REQUIRED = "The hotel is required";
    protected static final String LOCATION_REQUIRED = 
            "The location is required";
    protected static final String RATE_NOT_VALID = "Rate value not valid";
    protected static final String RATE_REQUIRED = "The rate is required";
    
    /**
     * Executes a determined action based on the data specified
     *
     * @param   params Data to execute the specified action
     * @return  Action result
     * @throws RuntimeException TODO
     */
    public abstract Object execute(Map<String, Object> params) throws RuntimeException;
    
}
